package com.test;

import java.util.ServiceLoader;

public class JDkSPI {

    public static void main(String[] args) {
        ServiceLoader<UploadCDN> uploadCDN = ServiceLoader.load(UploadCDN.class);
        for (UploadCDN u : uploadCDN) {
           // System.out.println();
            u.upload("filePath");
        }
    }
}
